import assessCheckApi from './api'
import { axios } from '@/utils/request'

export function dict(val) {
  return axios({
    url: assessCheckApi.dict,
    params: {dictName:val},
    method: "GET",
    url_1:'outside'
  })
}

// 技术职称系列库-删除
export function deleteTitle(params){
  return axios({
    url: assessCheckApi.deleteTitle,
    method:'delete',
    params:{...params},
    url_1:'outside',
  })
}

// 技术职称系列库-添加
export function addTitle(data){
  return axios({
    url: assessCheckApi.addTitle,
    method:'post',
    data:{...data},
    url_1:'outside',
  })
}

// 技术职称系列库-编辑
export function editTitle(data){
  return axios({
    url: assessCheckApi.editTitle,
    method:'put',
    data:{...data},
    url_1:'outside',
  })
}

// 技术职称系列库-下载模板
export function downZcTemplate(params) {
  return axios({
    url: assessCheckApi.downZcTemplate,
    method: "get",
    params,
    url_1:'outside',
    responseType: 'arraybuffer',
  });
};

// 技术职称系列库-导入
export function impZckData(data) {
  return axios({
    url: assessCheckApi.impZckData,
    method: "POST",
    data,
    url_1:'outside',
  });
};

// 技术职称系列库-导出
export function exportZckData(params) {
  return axios({
    url: assessCheckApi.exportZckData,
    method: "GET",
    params,
    url_1:'outside',
    responseType: 'arraybuffer',
  });
};
